window: Stop duplicating focus change events
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 May 2019 15:18:35 +0000 (15:18 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 May 2019 18:22:33 +0000 (18:22 +0000)
commit32fd55a66db2febcbbbcb386589576f20e948ded
tree91450e2c78efada59ba82833ea0a5dd16335ec08
parent9af01bea5ebbeaa19cd0d2cdb72d592193d4692c
window: Stop duplicating focus change events

We had code in gtkwindow.c that generated duplicate,
and defective, focus-change events, in the following
way:
- gtkmain.c generates a chain of focus-change events
  for moving focus from one window to another
- gtkwindow.c catches a focus-in event in the middle
  of this chain and sets itself as 'active'
- and then it proceeds to generate focus-change
  events towards its own focus widget without a
  related target
This is not necessary since we gtkmain.c already
generates a complete sequence of focus-change events.
So stop doing it.
gtk/gtkwindow.c